{% extends "base.html" %} {% block title %}登录 - 运动健康管理系统{% endblock %}
{% block content %}
<div class="row justify-content-center my-5">
  <div class="col-md-6 col-lg-5">
    <div class="card shadow">
      <div class="card-body p-5">
        <h2 class="text-center mb-4">
          <i class="bi bi-person-circle"></i> 用户登录
        </h2>
        <form id="loginForm" method="POST" action="{{ url_for('login') }}">
          {{ form.hidden_tag() }}
          <div class="mb-3">
            <label for="username" class="form-label">用户名</label>
            {{ form.username(class="form-control", id="username") }}
          </div>
          <div class="mb-3">
            <label for="password" class="form-label">密码</label>
            {{ form.password(class="form-control", id="password") }}
          </div>
          <div class="mb-3 form-check">
            {{ form.remember_me(class="form-check-input", id="rememberMe") }}
            <label class="form-check-label" for="rememberMe">记住我</label>
          </div>
          <div class="d-grid gap-2">
            {{ form.submit(class="btn btn-primary btn-lg") }}
          </div>
          <div class="text-center mt-3">
            <a
              href="{{ url_for('reset_password_request') }}"
              class="text-decoration-none"
              >忘记密码?</a
            >
            <span class="mx-2">|</span>
            <a href="{{ url_for('register') }}" class="text-decoration-none"
              >注册新账号</a
            >
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock %} {% block extra_js %}
<script src="{{ url_for('static', filename='scripts/login.js') }}"></script>
{% endblock %}
